﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace Controls
{
    public class PsCheckBox : CheckBox
    {
        private bool _isKeepFonValue;
        /// <summary>
        /// 保存后是否清空上次的值，简而言之，是否保存原值
        /// </summary>
        public bool IsKeepFonValue
        {
            get { return _isKeepFonValue; }
            set { _isKeepFonValue = value; }
        }

        private string _editMode = "";

        public virtual string EditMode
        {
            get { return _editMode; }
            set { _editMode = value; }
        }

        private object _checkedValue;

        /// <summary>
        /// CheckBox 选中时候代表的值
        /// </summary>
        public object CheckedValue
        {
            get { return _checkedValue; }
            set { _checkedValue = value; }
        }

        private object _unCheckedValue;

        /// <summary>
        /// CheckBox未选中时候代表的值
        /// </summary>
        public object UnCheckedValue
        {
            get { return _unCheckedValue; }
            set { _unCheckedValue = value; }
        }

        private string _defaultValue;

        public string DefaultValue
        {
            get { return _defaultValue; }
            set { _defaultValue = value; }
        }

        private string _displayMode;

        public string DisplayMode
        {
            get { return _displayMode; }
            set { _displayMode = value; }
        }
    }
}
